from common import *

import pylab

def plot_xFunc(in_x,in_f_x):

    pylab.ion()
    fig = pylab.figure(1)
    sub = pylab.subplot(111)

    while True:
        x = in_x()
        f_x = in_f_x()
        
        fig.clear()
        pylab.plot(x,f_x)
        pylab.draw()
